package com.crrcdt.service;

import com.crrcdt.api.TicketService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;

/**
 * @author lj on 2020/8/27.
 * @version 1.0
 */
@Service  //将服务发布出去
@Component  //放到容器中
public class TicketServiceImpl implements TicketService {
    @Override
    public String getTicket() {
        return "调用了provider02提供者,你在我这得到了一张票";
    }
}
